package com.ljw.food_order_server.controller;


import com.ljw.food_order_server.service.impl.PositionServiceImpl;
import com.ljw.food_order_server.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ljw
 * @since 2021-07-31
 */
@RestController
@RequestMapping("/position")
public class PositionController {

    @Autowired
    private PositionServiceImpl positionService;

    @GetMapping("/getPosition")
    public R getPosition(){
        return R.getR().ok(positionService.getPosition());
    }

}

